import strategy.OperationByBike;
import strategy.OperationByCar;
import strategy.OperationByFeet;

/**
 * @Author Liu Chang
 * @Date 2021/11/1 7:27 下午
 */
public class TripStrategyTest {
    public static void main(String[] args) {
        TripContext contextByBike = new TripContext(new OperationByBike());
        contextByBike.executeStrategy();

        TripContext contextByCar = new TripContext(new OperationByCar());
        contextByCar.executeStrategy();

        TripContext contextByFeet = new TripContext(new OperationByFeet());
        contextByFeet.executeStrategy();
    }
}
